<template>
	<view class="contents">
		<view class="content">
			<!-- 顶部弧角 -start -->
			<view class="tops"  @click="toSetting">
				<view class="top_angle">
					<!-- 设置 -start -->
					<view class="right_up">
						<view >							
							<image class="right_up_img" mode="aspectFit" src="../../static/SettingsIcon.png"></image>
						</view>
					</view>
					<view class="her_60"/>
					<!-- 设置 -end -->
					<!-- 资料卡 -start -->
					<view class="m_card flx_wap">
						<view class="m_card_top bef_bor flx_cent">
							<view class="m_card_img">
								<image  class="m_card_imgs"  src="../../utils/toux.jpg" mode="scaleToFill"></image>
							</view>
							<view class="m_card_name">
								<view class="m_card_names">哈哈</view>
								<view style="margin-left: 24rpx;">
									<image class="m_card_xb"  src="../../utils/xingbie.png" mode=""></image>
								</view>
							</view>
						</view>
						<view class="m_card_bot">
							<view class="m_text flx_sb" >
								<view class="m_text_left">
									不走寻常路，只爱陌生人！
								</view>
								<view class="m_text_right ">
									<image  class="m_text_right_img"  src="../../static/EditProfile.png" mode="scaleToFill"></image>
								</view>
							</view>
						</view>
					</view>
					<!-- 资料卡 -end -->
				</view>
			</view>
			
			<!-- 顶部弧角 -end -->
			<view class="her_20"/>
			<!-- 作品-start -->
			<view class="works">
				<view class="works_tab flx_cent" style="text-align: center;">
			<button class="works_tab_title bef_bor" space="ensp"  @click="ToMy">足迹地图</button>
			<button class="works_tab_title bef_bor title_xz" space="ensp" @click="goto('/pages/index/my2')">作品合集</button>
				</view>
	        <view class="page-body">
	            <view class="page-section page-section-gap">
	                <map style="width: 100%; height: 260px;" :latitude="latitude" :longitude="longitude" :markers="covers">
	                </map>
	            </view>
	        </view>
			</view>
		</view>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			},
			{
			      id:0, // 使用 marker点击事件 需要填写id
			            title: 'map',
			            latitude: 39.909,
			            longitude: 116.39742,
			            covers: [{
			                latitude: 39.909,
			                longitude: 116.39742,
			                iconPath: '../../static/location.png'
			            }, {
			                latitude: 39.90,
			                longitude: 116.39,
			                iconPath: '../../static/location.png'
			            }]
			        }
		},
		onLoad() {

		},
		methods: {
			toSetting(){
				uni.navigateTo({
					url:'settings'
				})
			},
			ToMy(){
				uni.navigateTo({
					url:'my'
				})
			},
			goto(url) {
			    uni.navigateTo({
			        url:url
			    })
			}
		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		
	}
	.top_angle{
		width: 100%;
		height: 400rpx;
		position: relative;
		z-index: -1;
	}
	.top_angle::after {
		content: '';
		width: 120%;
		height: 300rpx;
		position: absolute;
		left: -10%;
		top: 0;
		z-index: -1;
		border-radius: 0 0 60% 60%;
		background-image: url(../../utils/b1.jpg);
		background-size: cover;
	}
	.right_up{
		display: flex;
		justify-content: flex-end;
		padding-top: 24rpx;
	}
	.right_up_img{
		width: 60rpx; 
		height: 60rpx;
		padding: 0 24rpx;
	}
	.m_card_imgs{
		width: 100rpx;
		height: 100rpx;
		border-radius: 999rpx;
	}
	.m_card{
		margin: 0 30px;
		background:#FFFFFF;
		border-radius: 20rpx;
		border: 2rpx solid #999999;
		height: 360rpx;
		width: 600rpx;
		
	}
	.m_card_top{
		height: 160rpx;
		position: relative;
		padding: 0 24rpx;
		width: 100%;
	}
	.m_card_bot{
		width: 100%;
		height: 160rpx;
	}
	.m_card_names{
		padding-left: 24rpx;
		font-weight: 700;
	}
	.m_text{
		display: flex;
		padding: 24rpx 24rpx 0 24rpx;
	}
	.m_text_right_img{
		left: 90rpx;
		width: 40rpx;
		height: 40rpx;
	}
	.works_tab_title{
		flex: 1;
		text-align: center;
		height: 46rpx;
		line-height: 46rpx;
		position: relative;
	}
	.tops{
		height: 600rpx;
	}
	.works{
		width: 100%;
	}
	.title_xz::before{
		content:"";
		position: absolute;
		bottom: -2rpx;
		left: 0;
		width: 100%;
		height: 1rpx;
		background:#04BE02;
	}
	.works_exhibition_img{
		width: calc(100vw / 3);
		height: calc(100vw / 3) ;
	}
	.contents{
		width: 100vw;
		height: 100vh;
		overflow: hidden;
		overflow-y: scroll;
	}
	.works_exhibition{
		margin-top: 2rpx;
	}
	.m_card_xb{
		width: 30rpx;
		height: 30rpx;
	}
	.m_card_name{
		display: flex;
	}
	.text1{
		width: 120px;
	    height: 25px;
	    opacity: 1;
	    font-size: 12px;
	    font-family: PingFang SC, PingFang SC-Regular;
	    font-weight: 800;
		left: 50rpx;
		position: absolute;
		background: #FFFFFF;
	}
	.text2{
		width: 120px;
	    height: 25px;
	    opacity: 1;
	    font-size: 12px;
	    font-family: PingFang SC, PingFang SC-Regular;
	    font-weight: 400;
		right: 50rpx;
		position: absolute;
		background: #FFFFFF;
	}
</style>
